package com.lucweb.entity;

import javax.persistence.*;

@Entity
@Table(name = "task_call", schema = "firesystem", catalog = "")
public class TaskCall {
    private int id;
    private String companyName;
    private String callName;
    private String callNumber;
    private String callTime;
    private String type;
    private String callstatus;
    private String taskNumber;
    private String comfirmPeople;
    private String calltext;

    @Id
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "companyName", nullable = true, length = 255)
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Basic
    @Column(name = "callName", nullable = true, length = 255)
    public String getCallName() {
        return callName;
    }

    public void setCallName(String callName) {
        this.callName = callName;
    }

    @Basic
    @Column(name = "callNumber", nullable = true, length = 255)
    public String getCallNumber() {
        return callNumber;
    }

    public void setCallNumber(String callNumber) {
        this.callNumber = callNumber;
    }

    @Basic
    @Column(name = "callTime", nullable = true, length = 255)
    public String getCallTime() {
        return callTime;
    }

    public void setCallTime(String callTime) {
        this.callTime = callTime;
    }

    @Basic
    @Column(name = "type", nullable = true, length = 255)
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "callstatus", nullable = true, length = 255)
    public String getCallstatus() {
        return callstatus;
    }

    public void setCallstatus(String callstatus) {
        this.callstatus = callstatus;
    }

    @Basic
    @Column(name = "taskNumber", nullable = true, length = 255)
    public String getTaskNumber() {
        return taskNumber;
    }

    public void setTaskNumber(String taskNumber) {
        this.taskNumber = taskNumber;
    }

    @Basic
    @Column(name = "comfirmPeople", nullable = true, length = 255)
    public String getComfirmPeople() {
        return comfirmPeople;
    }

    public void setComfirmPeople(String comfirmPeople) {
        this.comfirmPeople = comfirmPeople;
    }

    @Basic
    @Column(name = "calltext", nullable = true, length = 255)
    public String getCalltext() {
        return calltext;
    }

    public void setCalltext(String calltext) {
        this.calltext = calltext;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TaskCall taskCall = (TaskCall) o;

        if (id != taskCall.id) return false;
        if (companyName != null ? !companyName.equals(taskCall.companyName) : taskCall.companyName != null)
            return false;
        if (callName != null ? !callName.equals(taskCall.callName) : taskCall.callName != null) return false;
        if (callNumber != null ? !callNumber.equals(taskCall.callNumber) : taskCall.callNumber != null) return false;
        if (callTime != null ? !callTime.equals(taskCall.callTime) : taskCall.callTime != null) return false;
        if (type != null ? !type.equals(taskCall.type) : taskCall.type != null) return false;
        if (callstatus != null ? !callstatus.equals(taskCall.callstatus) : taskCall.callstatus != null) return false;
        if (taskNumber != null ? !taskNumber.equals(taskCall.taskNumber) : taskCall.taskNumber != null) return false;
        if (comfirmPeople != null ? !comfirmPeople.equals(taskCall.comfirmPeople) : taskCall.comfirmPeople != null)
            return false;
        if (calltext != null ? !calltext.equals(taskCall.calltext) : taskCall.calltext != null) return false;

        return true;
    }

    @Override
    public String toString() {
        return "TaskCall{" +
                "id=" + id +
                ", companyName='" + companyName + '\'' +
                ", callName='" + callName + '\'' +
                ", callNumber='" + callNumber + '\'' +
                ", callTime='" + callTime + '\'' +
                ", type='" + type + '\'' +
                ", callstatus='" + callstatus + '\'' +
                ", taskNumber='" + taskNumber + '\'' +
                ", comfirmPeople='" + comfirmPeople + '\'' +
                ", calltext='" + calltext + '\'' +
                '}';
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (companyName != null ? companyName.hashCode() : 0);
        result = 31 * result + (callName != null ? callName.hashCode() : 0);
        result = 31 * result + (callNumber != null ? callNumber.hashCode() : 0);
        result = 31 * result + (callTime != null ? callTime.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (callstatus != null ? callstatus.hashCode() : 0);
        result = 31 * result + (taskNumber != null ? taskNumber.hashCode() : 0);
        result = 31 * result + (comfirmPeople != null ? comfirmPeople.hashCode() : 0);
        result = 31 * result + (calltext != null ? calltext.hashCode() : 0);
        return result;
    }
}
